package com.info.zhiduoduo.repository.entity.crm;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 变更负责人记录表
 * @author cuichenglong
 * @since 2019-12-22
 */
@Data
@Accessors(chain = true)
@TableName("zdd_crm_change_record")
public class ChangeRecord extends Model<ChangeRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("sue_id")
    private Integer sueId;

    @TableField("biz_id")
    private Integer bizId;

    @TableField("cust_id")
    private Integer custId;

    @TableField("partner_id")
    private Integer partnerId;

    @TableField("front_duty_id")
    private Integer frontDutyId;

    private String describe;

    @TableField("operator_id")
    private int operatorId;

    private Date createtime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
